package org.cypress.rtpack.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.cypress.rtpack.entity.RtpackHostname;
import org.cypress.rtpack.entity.RtpackMoniip;

import java.util.List;


/**
 * @author getty
 */
public interface IRtpackHostnameService extends IService<RtpackHostname> {
    RtpackHostname getByIndex(Integer index);
    RtpackHostname getByIP(String IP);
    List<RtpackHostname> getAll();

    RtpackHostname updateByIndex(RtpackHostname inst);
    List<RtpackHostname> batchUpdateByIndex(List<RtpackHostname> instList);

    int deleteAllRecords();
    List<RtpackHostname> batchInsert(List<RtpackHostname> instList);
}
